import request from '@/utils/request'
import qs from "qs"
export default {
// 获取会员设置列表
    getListAll(){

        return request({

            url:'/api-user/ms/listAll',
            method:'get'
        })
    },

    // 添加會員類型
    addList(ms){

        var data=qs.stringify(ms);
        return request({
            url: '/api-user/ms/addList',
            method: 'post',
            data


        })
    },

// 根据ID查询数据
    getListById(msId){
        return request({
            url: '/api-user/ms/listAllById',
            method: 'get',
            params:{msId}
        })
   },

    // 修改数据
    setListById(ms){


        var data = qs.stringify(ms);
        return request({
            url: '/api-user/ms/updateListById',
            method: 'put',
            data


        })
    },

    deleteById(id) {
        return request({
            url: `/api-user/ms/delete/${id}`,
            method: 'delete'
        })
    },





}